/*
 * @Author: 9ilk 3535851673@qq.com
 * @Date: 2025-01-15 20:37:17
 * @LastEditors: 9ilk 3535851673@qq.com
 * @LastEditTime: 2025-01-16 19:42:08
 * @FilePath: /zhuang/TCP/EchoServer/TcpServer.cc
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#include"TcpServer.hpp"
#include<memory>
#include"CommandExec.hpp"

int main()
{
    ENABLE_CONSOLE_LOG();
    Command cmd;

    unique_ptr<TcpServer> tsvr = std::make_unique<TcpServer>([&cmd](string cmdstr){
           return cmd.Execute(cmdstr);
    });
    
    tsvr->InitServer();
    tsvr->Start();
    return 0;
}